package com.mce.nebula.dto;

import com.mce.nebula.entity.TeamRolePermission;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 团队角色权限响应DTO
 */
@Data
public class TeamRolePermissionResponse {
    
    private Long id;
    private String roleId;
    private String permissionCode;
    private String permissionName;
    private String permissionDesc;
    private Boolean isActive;
    private String enterpriseId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    
    public TeamRolePermissionResponse(TeamRolePermission permission) {
        this.id = permission.getId();
        this.roleId = permission.getRoleId();
        this.permissionCode = permission.getPermissionCode();
        this.permissionName = permission.getPermissionName();
        this.permissionDesc = permission.getPermissionDesc();
        this.isActive = permission.getIsActive();
        this.enterpriseId = permission.getEnterpriseId();
        this.createTime = permission.getCreateTime();
        this.updateTime = permission.getUpdateTime();
    }
}





